/*   **********************************************************************  **
 **   Copyright notice                                                       **
 **                                                                          **
 **   (c) 2009, Around(J2)ME				                                 **
 **   All rights reserved.                                                   **
 **                                                                          **
 **   This program and the accompanying materials are made available under   **
 **   the terms of the New BSD License which accompanies this    			 **
 **   distribution.											                 **
 **   A copy is found in the textfile LICENSE.txt							 **
 **                                                                          **
 **   This copyright notice MUST APPEAR in all copies of the file!           **
 **                                                                          **
 **   Main developers:                                                       **
 **     Juri Strumpflohner		http://blog.js-development.com	             **
 **		Matthias Braunhofer		http://matthias.jimdo.com                    **
 **                                                                          **
 **  **********************************************************************  */

package org.aroundme.utility;

/**
 * This class is reponsible for replacing substituted critical
 * chars on the mobile side into their orgininal chars
 * 
 */
public class StringReplacer {

	public StringReplacer(){	
	}
	
	/**
	 * Subsitutes replaced critical chars on the mobile side into
	 * their original symbols
	 * @param text String containing the substituted chars
	 * @return String
	 */
	public String replaceCriticalSymbols(String text){
		if(text == null)
			System.out.println(text);
		
		text = text.replaceAll("&lt;", "<");
		text = text.replaceAll("&gt;", ">");
		return text;
	}
}
